<template>
    <div>
        <van-tabs v-model:active="active">
            <van-tab title="精选">
                <swipe :image="images"></swipe>
            </van-tab>
            <van-tab title="本地">内容 2</van-tab>
            <van-tab title="新车">内容 3</van-tab>
            <van-tab title="原创">内容 4</van-tab>
            <van-tab title="视频看车">内容 5</van-tab>
            <van-tab title="导购">内容 6</van-tab>
        </van-tabs>
    </div>
</template>

<script setup>
import swipe from '@/components/swipe.vue';
import { ref } from 'vue';


import { swiperdataApi } from '@/api/api';
let images = ref([])
const getters = () => {
    swiperdataApi().then((res) => {
        images.value = res.data.message
        console.log(res);
    })
}
getters()
</script>

<style lang="scss" scoped></style>